<#import "template.ftl" as t/>
<@t.html ; part>
    <#if part="head">
    <link href='<@spring.url "/resources/css/fullcalendar/fullcalendar.min.css"/>' rel='stylesheet' />
    <link href='<@spring.url "/resources/css/fullcalendar/fullcalendar.print.min.css"/>' rel='stylesheet' media='print' />
    <link href="<@spring.url "/resources/plugins/morris-js/morris.min.css"/>" rel="stylesheet">
    <script src="<@spring.url "/resources/js/fullcalendar/moment.min.js"/>"></script>
    <script src="<@spring.url "/resources/js/fullcalendar/fullcalendar.min.js"/>"></script>
    </#if>
    <#if part="body">
        <#if messageList?? && messageList?size &gt;0>
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel">
                        <#list messageList as message>
                            <p class="panel-title">${message.content}</p>
                        </#list>
                    </div>
                </div>
            </div>
        </#if>
        <#if companyInfo?? && companyInfo.status == 2>
            <#include "index/charts.ftl"/>
        <#else>
            <div class="row">
                <div class="col-sm-4 col-md-3">
                    <div class="panel pos-rel">
                        <div class="pad-all" >
                            <div class="media pad-ver"></div>
                            <p class="pad-btm bord-bt text-sm"></p>
                            <p class="pad-btm bord-bt text-sm">
                                <#if companyInfo??>
                                    <a href="<@spring.url "/companyInfo/edit/${companyInfo.id}/pro"/>">填写基本信息</a>
                                <#else>
                                    <a href="<@spring.url "/companyInfo/new/pro"/>">填写基本信息</a>
                                </#if>
                            </p>
                            <p class="pad-btm bord-bt text-sm"></p>
                            <div class="text-center pad-to">
                                <div class="btn-group">
                                    <#if companyInfo??>
                                        <a href="<@spring.url "/companyInfo/edit/${companyInfo.id}/pro"/>" class="btn btn-sm btn-default"><i class="demo-pli-pen-5 icon-lg icon-fw"></i> Edit</a>
                                    </#if>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-4 col-md-3">
                    <div class="panel pos-rel">
                        <div class="pad-all" >
                            <div class="media pad-ver"></div>
                            <p class="pad-btm bord-bt text-sm"></p>
                            <p class="pad-btm bord-bt text-sm">
                                <#if detailInfo??>
                                    <a href="<@spring.url "/companyInfo/editDetail/${detailInfo.id}/pro"/>">填写企业详细用电信息</a>
                                <#elseif companyInfo??>
                                    <a href="<@spring.url "/companyInfo/newDetail/${companyInfo.id}/pro"/>">填写企业详细用电信息</a>
                                <#else>
                                    <a href="javascript:void(0)">填写企业详细用电信息</a>
                                </#if>
                            </p>
                            <p class="pad-btm bord-bt text-sm"></p>
                            <div class="text-center pad-to">
                                <div class="btn-group">
                                <#if detailInfo??>
                                    <a href="<@spring.url "/companyInfo/editDetail/${detailInfo.id}/pro"/>" class="btn btn-sm btn-default"><i class="demo-pli-pen-5 icon-lg icon-fw"></i> Edit</a>
                                </#if>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-4 col-md-3">
                    <div class="panel pos-rel">
                        <div class="pad-all" >
                            <div class="media pad-ver"></div>
                            <p class="pad-btm bord-bt text-sm"></p>
                            <p class="pad-btm bord-bt text-sm">
                                <#if detailInfo??>
                                    <a href="<@spring.url "/contractInfo/show/${detailInfo.companyInfoId}/pro"/>">选购套餐</a>
                                <#else>
                                    <a href="javascript:void(0)">选购套餐</a>
                                </#if>

                            </p>
                            <p class="pad-btm bord-bt text-sm"></p>
                            <div class="text-center pad-to">
                                <div class="btn-group">
                                <#if detailInfo??>
                                    <a href="<@spring.url "/contractInfo/show/${detailInfo.companyInfoId}/pro"/>" class="btn btn-sm btn-default"><i class="demo-pli-pen-5 icon-lg icon-fw"></i> Edit</a>
                                </#if>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-4 col-md-3">
                    <div class="panel pos-rel">
                        <div class="pad-all" >
                            <div class="media pad-ver"></div>
                            <p class="pad-btm bord-bt text-sm"></p>
                            <p class="pad-btm bord-bt text-sm">
                                <#if detailInfo??>
                                    <a href="<@spring.url "/contractInfo/file/${detailInfo.companyInfoId}/pro"/>">合同盖章回传</a>
                                <#else>
                                    <a href="javascript:void(0)">合同盖章回传</a>
                                </#if>
                            </p>
                            <p class="pad-btm bord-bt text-sm"></p>
                            <div class="text-center pad-to">
                                <div class="btn-group">
                                    <#if detailInfo??>
                                        <a href="<@spring.url "/contractInfo/file/${detailInfo.companyInfoId}/pro"/>" class="btn btn-sm btn-default"><i class="demo-pli-pen-5 icon-lg icon-fw"></i> Edit</a>
                                    </#if>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </#if>
        <div class="row">
            <div class="col-lg-7">
                <#include "index/calendar.ftl"/>
            </div>
            <div class="col-lg-5">
                <#if companyInfo?? && companyInfo.status == 2>
                <div class="panel">
                    <div class="panel-heading">
                        <h3 class="panel-title">代办事项</h3>
                    </div>
                    <div class="panel-body">
                        <p>上半年结算单未确认 <span style="color:blue">去确认</span> </p>
                        <p>售电合同未回传</p>
                    </div>
                </div>
                </#if>
                <#if newList?? && newList?size &gt; 0>
                    <div class="panel">
                        <div class="panel-body">
                            <div class="list-group">
                                    <#list newList as newData>
                                        <br/>
                                        <a href="#" class="list-group-item">
                                            <h4 class="list-group-item-heading">${newData.title!}</h4>
                                            <p class="list-group-item-text">${newData.description!}</p>
                                        </a>
                                    </#list>
                        </div>
                    </div>
                </#if>
            </div>
        </div>
    </#if>
    <#if part="modal">
    </#if>

    <#if part="foot_script">
    <#if companyInfo?? && companyInfo.status == 2>
    <script src="<@spring.url "/resources/plugins/morris-js/morris.js"/>"></script>
    <script src="<@spring.url "/resources/plugins/morris-js/raphael.min.js"/>"></script>
    <script src="<@spring.url "/resources/js/morris-js.js"/>"></script>
    </#if>
    <script type="text/javascript">

    </script>
    </#if>
</@t.html>